---
title: "SQL-010: Get policy"
summary: Retrieve core policy data for a policy number.
status: draft
owner: SAIF Corporation
last_reviewed: 2026-08-21
library: SAIF.Business.View.Policy
reference_type: embedded
---

# SQL-010 Get policy

Retrieve core policy data for a policy number.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-010 |
| **Operation type** | Read |
| **Execution method** | Stored procedure |
| **Database** | Oracle |
| **Schema** | `[unqualified]**` |
| **Command type** | StoredProcedure |
| **Business object** | `clsPolicyData` |
| **Criteria property** | `RetrieveSQL` |
| **Lifecycle method** | `BeforeRetrieve` / `AfterRetrieve` |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:apolicynum` | Input | Decimal | N/A | Policy number |
| `recordset` | Output (Cursor) | REF CURSOR | N/A | Policy row |

## Tables

N/A — Stored procedure

## Sample SQL

```sql
-- Oracle stored procedure call (CommandType.StoredProcedure)
-- clsPolicyData.BeforeRetrieve
CALL pk73094_policy_data.getpolicy(
  :apolicynum,
  :recordset)
```


## Operations and processes
- [Retrieve policy data](../operations-processes.md)

## Business rules
- [BR-VP-001: Policy number must be valid before retrieve](../business-rules.md#br-vp-001-policy-number-must-be-valid-before-retrieve)
- [BR-VP-010: Demo users see masked data](../business-rules.md#br-vp-010-demo-users-see-masked-data)
- [BR-VP-016: Market type mapping](../business-rules.md#br-vp-016-market-type-mapping)
- [BR-VP-023: Login date on or before 2000-01-01 is "never logged in"](../business-rules.md#br-vp-023-login-date-on-or-before-2000-01-01-is-never-logged-in)
- [BR-VP-027: Create/Insert/Update/Delete SQL are invalid](../business-rules.md#br-vp-027-createinsertupdatedelete-sql-are-invalid)

## Sources
- `SAIF.Business.View.Policy/clsPolicyData.vb`
